#ifndef CONNWIDGTE_H
#define CONNWIDGTE_H

#include <QWidget>
#include "MdiChild.h"
#include "MQ.h"
class ConnWidgte : public QWidget
{
    Q_OBJECT

public:
    ConnWidgte(QWidget *parent = 0);
    ~ConnWidgte();
    void SetMq(MQ* mq);
private:
    QPushButton *pConn;
    QPushButton *pStop;
    QLineEdit *m_clientid;
    QLineEdit *m_user;
    QLineEdit *m_pwd;
    void InitWidte();
    MQ *m_mq;
private slots:
    void SendConn();
    void SendDisconn();
};

#endif // CONNWIDGTE_H
